% latex table generated in R 4.4.0 by xtable 1.8-4 package
% Thu Apr 10 09:22:16 2025
\begin{table}[ht]
\centering
\begin{tabular}{rrrrrr}
  \hline
 & Sanders '16 & Clinton '16 & Klobuchar '20 & Sanders '20 & Buttgieg '20 \\ 
  \hline
Edwards '08 & \cellcolor{gray!80}0.383 & \cellcolor{gray!30}-0.377 & \cellcolor{gray!30}-0.306 & \cellcolor{gray!110}0.527 & \cellcolor{gray!30}-0.246 \\ 
  Obama '08 & 0.041 & -0.042 & 0.168 & -0.153 & 0.052 \\ 
  Clinton '08 & \cellcolor{gray!60}-0.472 & \cellcolor{gray!110}0.464 & -0.124 & -0.162 & 0.071 \\ 
  Sanders '16 & 1.000 & \cellcolor{gray!60}-0.996 & \cellcolor{gray!30}-0.361 & \cellcolor{gray!110}0.528 & -0.092 \\ 
  Clinton '16 & \cellcolor{gray!60}-0.996 & 1.000 & \cellcolor{gray!80}0.370 & \cellcolor{gray!60}-0.531 & 0.111 \\ 
  Klobuchar '20 & \cellcolor{gray!30}-0.361 & \cellcolor{gray!80}0.370 & 1.000 & \cellcolor{gray!60}-0.658 & -0.084 \\ 
  Sanders '20 & \cellcolor{gray!110}0.528 & \cellcolor{gray!60}-0.531 & \cellcolor{gray!60}-0.658 & 1.000 & \cellcolor{gray!60}-0.438 \\ 
  Buttgieg '20 & -0.092 & 0.111 & -0.084 & \cellcolor{gray!60}-0.438 & 1.000 \\ 
   \hline
\end{tabular}
\caption{Correlations of vote shares in Democratic primaries from New Hampshire precincts (n=300-302).} 
\label{f:nhdems}
\end{table}
